<?php
namespace Admin\Controller;
use Think\Controller;
class IndexController extends PublicController
{
    //显示后台主页
    public function index(){

        $user = M('user')->count();
        $AdminUser = M('Admin_user')->count();
        $Article = M('Article')->count();

        $this->assign('user', $user);
        $this->assign('AdminUser', $AdminUser);
        $this->assign('Article', $Article);
        $this->display('Index/index');
    }

}
